package com.zhaokuner.myc.ctrl;

import com.zhaokuner.mypc.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author 赵希坤 zhaoxikun
 * @date 2021/11/16 5:47 下午
 */
@RestController
@RequestMapping("/")
public class DemoCtrl {

    @DubboReference
    DemoService demoService;

    @RequestMapping("ping")
    public String ping(){
        return demoService.hello();
    }

}
